package com.driving.single.frontend.friendlink.controller;

import com.driving.single.common.entity.DrivingResult;
import com.driving.single.frontend.friendlink.service.FrontendFriendlinkService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 友情链接  控制层
 *
 * @author xsfno1
 * @version v1.0.0
 * @date 2020/2/21 19:51
 * @see com.driving.single.frontend.friendlink.controller
 **/
@RestController
@RequestMapping("frontend/friendlink")
public class FrontendFriendlinkController {
    @Resource
    private FrontendFriendlinkService frontendFriendlinkService;

    /**
     * 获取友情链接数据
     *
     * @return {@link DrivingResult}
     */
    @GetMapping("")
    public DrivingResult getFriendlink() {
        return this.frontendFriendlinkService.getFriendlinkService();
    }
}
